from django.db import models

# Create your models here.

class Report(models.Model):
    Com_ID = models.CharField(max_length=2)
    Status = models.CharField(max_length=5)
    Detail = models.CharField(max_length=500)
    Date = models.CharField(max_length=10)
    Who = models.CharField(max_length=20)

    def __unicode__(self):
        return self.Com_ID
    
class HistoryError(models.Model):
    Com_ID = models.CharField(max_length=2)
    Detail = models.CharField(max_length=500)
    Date = models.CharField(max_length=10)

    def __unicode__(self):
        return self.Com_ID

class HistoryFix(models.Model):
    Com_ID = models.CharField(max_length=2)
    Detail = models.CharField(max_length=500)
    Date = models.CharField(max_length=10)
    Who = models.CharField(max_length=20)

    def __unicode__(self):
        return self.Com_ID
